package com.dao;

import com.entity.RewardInfo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by Administrator on 2019/1/10 0010.
 */
public interface RewardDao {

    List<RewardInfo> findRewardList(@Param("limit")Integer limit);

    int updatePrice(@Param("userId") Integer userId, @Param("hourPrice") String hourPrice);

    int addMoney(@Param("userId") Integer userId,@Param("money") BigDecimal money,@Param("nonceStr") String nonceStr,@Param("discount")BigDecimal discount);

    int updateMoney(@Param("userId")Integer userId,@Param("money")BigDecimal money);

}
